/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.universityUnits;

import model.entitys.NamedEntity;
import model.staff.Student;

/**
 *
 * @author Slayer
 */
class Group extends NamedEntity<Student> implements GroupInterface{
    private Student headman;
    private final DepartmentInterface department;
    
    public Group(String name, DepartmentInterface department) {
        super(name);
        headman = null;
        this.department = department;
    }

    @Override
    public DepartmentInterface getDepartment() {
        return department;
    }

    @Override
    public Student getHeadman() {
        return headman;
    }

    public void setHeadman(Student headman) {
        this.headman = headman;
    }
    
    @Override
    public String getName() {
        return getName();
    }
}
